//
//  OssService.h
//  OssIOSDemo
//  Created by jingdan on 17/11/23.
//  Copyright © 2015年 Ali. All rights reserved.
//

#ifndef OssService_h
#define OssService_h
#import <AliyunOSSiOS/OSSService.h>
@interface OssService : NSObject

- (id)initWithEndPoint:(NSString *)enpoint;

- (void)setCallbackAddress:(NSString *)address;

- (void)asyncPutImage:(NSString *)objectKey
        localFilePath:(NSString *)filePath;

- (void)asyncGetImage:(NSString *)objectKey;

- (void)normalRequestCancel;
/**
 *    @brief    上传图片
 *
 *    @param     objectKey     objectKey
 *    @param     uploadData    数据
 */
- (void)asyncPutImage:(NSString *)objectKey
                 data:(NSData *)uploadData success:(void(^)(NSString *imgUrl))success failure:(void(^)(NSString * errmsg, NSString *objectKey, NSData *uploadData))failure;

- (void)asyncPutImage:(NSString *)objectKey
                 data:(NSData *)uploadData;
@end
#endif /* OssService_h */
